package com.jsjosem.aftersales.utils;

public class PageUtils {

    public static int totalPage(int pageSize, Long total) {
        return Math.toIntExact((total + pageSize - 1) / pageSize);
    }
}
